﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebUI.Infrastructure
{
    public class DerivedRazorViewEngine : RazorViewEngine
    {
        public DerivedRazorViewEngine()
        {
            var viewLocations = new[] {  
            "~/Views/{1}/{0}.cshtml",  
            "~/Views/Shared/{0}.cshtml",  
            //"~/Views/Shared/DisplayTemplates/{0}.cshtml", 
            //"~/Views/Shared/EditorTemplates/{0}.cshtml"
        };

            this.PartialViewLocationFormats = viewLocations;
            this.ViewLocationFormats = viewLocations;
        }
    }
}
